<template>
  <div class="archive-manage-page">
    <!-- 页面标题 -->
    <div class="page-header">
      <h1>档案管理</h1>
      <p>对档案进行分类、编目和管理</p>
    </div>

    <!-- 档案分类与编目 -->
    <div class="manage-section">
      <div class="section-header">
        <h3><i class="el-icon-folder"></i> 档案分类与编目</h3>
      </div>
      
      <div class="form-section">
        <div class="form-row">
          <div class="form-item">
            <label>选择分类</label>
            <el-select v-model="selectedCategory" placeholder="请选择分类" style="width: 100%;">
              <el-option label="财务档案" value="finance"></el-option>
              <el-option label="人事档案" value="hr"></el-option>
              <el-option label="项目档案" value="project"></el-option>
              <el-option label="合同档案" value="contract"></el-option>
            </el-select>
          </div>
        </div>
        
        <div class="form-row">
          <div class="form-item">
            <label>编目信息</label>
            <el-input
              v-model="catalogInfo"
              type="textarea"
              :rows="3"
              placeholder="请输入编目信息..."
              style="width: 100%;"
            ></el-input>
          </div>
        </div>
        
        <div class="form-actions">
          <el-button type="primary" icon="el-icon-plus">添加档案</el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ArchiveManage',
  data() {
    return {
      selectedCategory: '',
      catalogInfo: ''
    }
  },
  methods: {
    addArchive() {
      // 添加档案逻辑
    }
  }
}
</script>

<style scoped>
.archive-manage-page {
  padding: 0;
}

.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  margin-bottom: 30px;
  border-radius: 8px;
}

.page-header h1 {
  font-size: 28px;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.page-header p {
  font-size: 16px;
  margin: 0;
  opacity: 0.9;
}

.manage-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-header {
  margin-bottom: 20px;
}

.section-header h3 {
  font-size: 16px;
  margin: 0;
  color: #333;
  display: flex;
  align-items: center;
}

.section-header h3 i {
  margin-right: 8px;
  color: #f093fb;
}

.form-section {
  max-width: 600px;
}

.form-row {
  margin-bottom: 20px;
}

.form-item label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-actions {
  margin-top: 30px;
}
</style> 